//
//  ADSEDisplayView.h
//  LuckyCam
//
//  Created by jiangdesheng on 2019/6/17.
//  Copyright © 2019 LuckyCam. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "ADSEMapTrailView.h"

typedef enum : NSUInteger {
    ADSESROPTION_DATE,  // 日期
    ADSESROPTION_SPEED, // 速度
    ADSESROPTION_COMPASS,   // 指南针
    ADSESROPTION_TRAIL,  // 轨迹
    ADSESROPTION_ACCELERATIONSPEED, // 加速度
    ADSESROPTION_ALTITUDE,  // 海拔
    ADSESROPTION_TURN,  // 转向
    ADSESROPTION_DRIVESTATE,   // 行驶状态
    ADSESROPTION_ROUTESUMMARY   // 行程总结
} ADSESROPTION;

NS_ASSUME_NONNULL_BEGIN

@interface ADSEDisplayView : UIView

@property (nonatomic, copy) void (^moveSROptionCack)(ADSESROPTION type, CGPoint location);

// 控件的大小
@property (nonatomic, assign) float imageWidth;

// 间隔
@property (nonatomic, assign) float spaceWidth;

// 指南针
@property (nonatomic, strong) UIView *compassView;
// 速度
@property (nonatomic, strong) UIView *speedView;
// 加速度
@property (nonatomic, strong) UIView *accelerationSpeedView;
// 海拔
@property (nonatomic, strong) UIView *altitudeView;
// 地图轨迹
@property (nonatomic, strong) UIView *mapTrackView;
// 转向
@property (nonatomic, strong) UIView *turnView;
// 行驶状态
@property (nonatomic, strong) UIView *drivingStateView;
// 地图轨迹
@property (nonatomic, strong) ADSEMapTrailView *line;
// 时间日期数据
@property (nonatomic, strong) UILabel *dataLabel;
// 行程总结状态
@property (nonatomic, assign) BOOL routeSummaryOn;

// GPS数据
@property (nonatomic, strong) NSArray *gpsDataArray;

- (void)handleData:(NSDictionary * __nullable)info nextData:(NSDictionary * __nullable)nextData currentTime:(float)currentTime;

// 转向数据处理
- (void)handleTurn;

- (void)initUI;

@end

NS_ASSUME_NONNULL_END
